package com.mk.settlement.enums;

public enum FeeTypeEnums {
	
	PRICE(100, "房价"), SERVICE(200, "服务费"), DISCOUNT(300, "补贴");

	private int index;
    
    private String desc;

    private FeeTypeEnums(int index, String desc) {
        this.index = index;
        this.desc = desc;
    }
    
    @Override
    public String toString() {
        return this.index + "_" + this.desc;
    }

    public int getIndex() {
        return index;
    }

    public String getDesc() {
        return desc;
    }
    
 public static String getDesc(int index) {
        
        for(FeeTypeEnums e : values()){
            
            if(e.index == index) {
                
                return e.desc;
            }
        }
        
        return null;
    }
	
}
